<!DOCTYPE html>
<html lang="en">
<head>
<{include file="public_html/header_tag.html"}>
	<title>题库</title>

</head>
<body>
<div class="wrap">
	<!--star header-->
	<div class="header">
	<{include file="public_html/header_menu.html"}>
	</div>
	<!--end  header-->

	<div class="return_nav b-FFFFFF">
		<div class="w1200">
		您的位置：<a href="/question">问答</a>
		</div>
	</div>
	<!--star main-->
	<div class="wrap_main fix p-t20">
        <!--content star-->
        <div class="col_main">
            <!--star-->
            <div class="box_item">
                <style>
				.h_center{ display:none;}
				</style>
                <!--star left-->
                <div class="wd_left l">
                    <div class="line-all b-FFFFFF">
                    	<!--star-->
                    	<div class="wenda_tab fs14 p-lr30">
                            <div class="mt tabBar">
                                <span <{if $type == 1}>class="curr"<{/if}>><a href="/question/index/<{$category_id}>/1">最新</a></span>
                                <span <{if $type == 2}>class="curr"<{/if}>><a href="/question/index/<{$category_id}>/2">热门</a></span>
                                <span <{if $type == 3}>class="curr"<{/if}>><a href="/question/index/<{$category_id}>/3">推荐</a></span>
                                <span <{if $type == 4}>class="curr"<{/if}>><a href="/question/index/<{$category_id}>/4">等待回复</a></span>
                            </div>
                            <div class="mc fix tabCon p-lr10 LH20">
                            	<!--star最新-->
                                <div class="divitem" style="display:block">
                                    <ul>
                                    	<{foreach from=$question_list item=q_item}>
                                    	<li class="p-tb20 line-bottom2">
                                        	<dl>
                                            	<dt class="l"><a class="img4242 m-r10 u2 oh" href="javascript:;"><img src="<{$q_item.head_image_url}>"></a></dt>
                                                <dd>
                                                	<div><a class="c-0393e2" href="/question/detail/<{$q_item.id}>"><{$q_item.title}></a></div>
                                                    <div class="fs12 c-999999 p-t5">
                                                    	<span class="p-r25"><a href="javascript:;" class="c-333333"><{$q_item.nick}></a>发起了问题</span>
                                                    	<span><{$q_item.answer_num}>个回复</span>
                                                    	<span class="p-lr10"> | </span>
                                                    	<span><{$q_item.click_num}>次浏览</span>
                                                    	<span class="p-lr10"> | </span>
                                                    	<span><{$q_item.add_time|time_ago}></span>
                                                    	<div class="r tar">
                                                        	<div><a class="c-999999" href="/question/detail/<{$q_item.id}>">回复</a></div>
                                                        </div>
                                                    </div>
                                                </dd>
                                            </dl>
                                        </li>
                                    	<{/foreach}>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    	<!--end-->
                    </div>
                    <!--star分页-->
                    <div class="pages m-tb40">
                        <{$pagination}>
                    </div>
                    <!--end分页-->
                </div>
                <!--end left-->
                <!--star right-->
                <div class="wd_right r">
                    <!--star我要提问-->
                	<div class="line-all b-FFFFFF m-b30 iwant_tiwen">
                    	<div class="tit tac LH60" xljs-name="xljs-Bomb" onClick="openWin();"><a href="javascript:;"><span class="fs22 c-FFFFFF"><img src="/static/www/img/ico_4040_question.png">我要提问</span></a></div>
                        <ul class="fs14 LH50 p-t30">
                    	<li><a class="c-0393e2" href="/question/my"><img src="/static/www/img/ico_2525_question.png"><span class="p-l10">我的提问</span></a></li>
                    	<li><a class="c-0393e2" href="/question/my_answer"><img src="/static/www/img/ico_2525_answer.png"><span class="p-l10">我的回答</span></a></li>
                    	<!-- <li><a class="c-0393e2" href="javascript:;"><img src="/static/www/img/ico_2525_collection.png"><span class="p-l10">我的收藏</span></a></li> -->
                        </ul>
                   	</div>
                    <!--end我要提问--
                    <!--star话题分类-->
                	<div class="line-all b-FFFFFF m-b30 p-lr25">
                    	<div class="mt h40 line-bottom p-t10"><span class="fs16">话题分类</span></div>
                        <div class="mc fix p-tb20 tac">
                            <div class="fix wtwolist bor-1aa3fa LH35 fs14 p-b40">
                            	<{foreach from=$category_list item=citem}>
                            	<span class="wtwls"><a href="/question/index/<{$citem.id}>/<{$type}>"><{$citem.name}></a></span>
                            	<{/foreach}>
                            </div>
                        </div>
                   	</div>
                    <!--end话题分类-->
                    <!--star热门问答-->
                	<div class="line-all b-FFFFFF m-b30 p-lr25">
                    	<div class="mt h40 line-bottom p-t10"><span class="fs16">热门问答</span></div>
                        <div class="mc fix p-tb20 LH25">
                            <{foreach from=$hot_question item=hot_q_item}>
                        	<dl class="line-bottom2 p-b10 m-b10">
                            	<dt class="l m-r10">
                                	<a class="ith_img img5252" href="javascript:;"><img src="<{$hot_q_item.head_image_url}>"></a>
                                    <!-- <div class="tac ells" style="width:52px;"></div> -->
                                </dt>
                                <dd>
                                	<div class="h30 oh ells"><a class="fs14" href="/question/detail/<{$hot_q_item.id}>"><{$hot_q_item.title}></a></div>
                                    <div><span class="c-999999"><a href="javascript:;"><{$hot_q_item.nick}></a>发表于<{$hot_q_item.add_time|time_ago}></span></div>
                                    <!-- <div class="h30 oh ells m-t2"><span class="c-666666"></span></div> -->
                                </dd>
                            </dl>
                            <{/foreach}>
                        </div>
                   	</div>
                    <!--end热门问答-->
                </div>
                <!--end right-->
            </div>
            <!--end-->
            <div class="fix tip_close" style="height:90px;"></div>
        </div>
        <!--content end-->
    </div>
	<!--end  main-->
	<!--star  footer-->
	<div class="footer">
	  <{include file="public_html/footer.html"}>
	</div>
	<!--end  footer-->
</div>
<script>
	function openWin(){
		layer.open({
			type: 2,
			title: '发布提问',
			shadeClose: true,
			shade: 0.8,
			area: ['800px', '770px'],
			maxmin: true,
			content: '/question/create' //iframe的url
		}); 
	}
</script>
</body>
</html>
